package com.woniu.car.client;


import com.woniu.car.common.ResponseEntity;
import com.woniu.car.ortherModel.*;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


@FeignClient("PlatformService")
public interface PlatformClient {




    @PostMapping("/platform/ElasticGoodsAdd")
    @ApiOperation("商品新增")
    public ResponseEntity ElasticGoodsAdd(@SpringQueryMap ElasticGoodsAddParameter parameter);

    @GetMapping("/platform/ElasticGoodsSearch")
    @ApiOperation("搜索商品")
    public ResponseEntity ElasticGoodsSearch(@RequestParam(value = "search") String search);

    @PutMapping("/platform/ElasticGoodsUpdate")
    @ApiOperation("根据编号更新商品")
    public ResponseEntity ElasticGoodsUpdate(@SpringQueryMap ElasticGoodsUpdateParameter parameter);

    @DeleteMapping("/platform/ElasticGoodsDelete")
    @ApiOperation("根据编号删除索引信息")
    public ResponseEntity ElasticGoodsDelete(@RequestParam(value = "goodsNo") String goodsNo);

    @GetMapping("/platform/searchCouponByCouponId")
    public ResponseEntity searchCoupon(@RequestParam("couponId") int couponId);





//    @GetMapping("/searchCoupon")
//    @ApiOperation("根据条件查询优惠券信息")
//    public ResponseEntity searchCoupon(@Validated CouponSearchParameter parameter);

}
